package _2025_3_16;

public class myBtest {
    public static void main(String[] args) throws InterruptedException {
        MyBlockingDeque myBlockingDeque=new MyBlockingDeque(10);
        myBlockingDeque.put(1);
        myBlockingDeque.put(2);
        myBlockingDeque.put(3);
        myBlockingDeque.put(4);
        myBlockingDeque.put(5);
        myBlockingDeque.put(6);
        myBlockingDeque.put(7);
        myBlockingDeque.put(8);
        myBlockingDeque.put(9);
        myBlockingDeque.put(10);
       // myBlockingDeque.put(11);
        System.out.println("1:"+myBlockingDeque.take());
        System.out.println("2:"+myBlockingDeque.take());
        System.out.println("3:"+myBlockingDeque.take());
        System.out.println("4:"+myBlockingDeque.take());
        System.out.println("5:"+myBlockingDeque.take());
        System.out.println("6:"+myBlockingDeque.take());
        System.out.println("7:"+myBlockingDeque.take());
        System.out.println("8:"+myBlockingDeque.take());
        System.out.println("9:"+myBlockingDeque.take());
        System.out.println("10:"+myBlockingDeque.take());//10
        System.out.println("11:"+myBlockingDeque.take());//11
    }
}
